package cn.felord.debezium.dao;

import cn.felord.debezium.entity.DetectionRl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 实验室光谱检测熔炼质检结果Mapper接口
 *
 * @author bysen
 * @date 2023-12-19
 */
@Repository
public interface DetectionRlMapper
{
     DetectionRl selectDetectionRlById(Long id);

     DetectionRl getDetectionByLch(@Param("packNum") String packNum);

     String getLastTime();

     List<DetectionRl> selectDetectionRlList(DetectionRl detectionRl);

     int insertDetectionRl(DetectionRl detectionRl);

     int updateDetectionRl(DetectionRl detectionRl);
     int deleteDetectionRlById(Long id);

     int deleteDetectionRlByDate(@Param("rq") String rq);

     int deleteDetectionRlByIds(String[] ids);

     int insertDetectionBetch(@Param("mapList") List<Map<String, Object>>  mapList);
}
